package cn.mst.vrs.controller.admin.order.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 订单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class OrderRespVO {

    @Schema(description = "订单类型主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22973")
    @ExcelProperty("订单类型主键ID")
    private Long typeId;

    @Schema(description = "订单类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "场地预约")
    @ExcelProperty("订单类型名称")
    private String type;

    @Schema(description = "用户主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16422")
    @ExcelProperty("用户主键ID")
    private Long userId;

    @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "小明")
    @ExcelProperty("用户昵称")
    private String nickName;

    @Schema(description = "订单项主键ID（场地预约：场地主键ID）", requiredMode = Schema.RequiredMode.REQUIRED, example = "3762")
    @ExcelProperty("订单项主键ID（场地预约：场地主键ID）")
    private Long itemId;

    @Schema(description = "订单项名称（场地预约：场地名称）", requiredMode = Schema.RequiredMode.REQUIRED, example = "西湖")
    @ExcelProperty("订单项名称（场地预约：场地名称）")
    private String itemName;

    @Schema(description = "计数", requiredMode = Schema.RequiredMode.REQUIRED, example = "22705")
    @ExcelProperty("计数")
    private BigDecimal count;

    @Schema(description = "总计", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("总计")
    private BigDecimal total;

    @Schema(description = "订单扩展信息", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("订单扩展信息")
    private String extendInfo;

    @Schema(description = "订单状态（0：待支付，1：待使用，2：已过期）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("订单状态（0：待支付，1：待使用，2：已过期）")
    private Integer status;

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "13316")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}